import request from '@/utils/request'


export function registerMember(data) {
    return request.post('member/save',data)
}
export function login(data) {
    return request.post('member/login',data)
}

export function getworkerList(data) {
    return request.get('member/worker-list/'+data)
}
export function changeWorkerinfo(data) {
    return request.post('member/update-worker',data)
}
export function changePwd(data) {
    return request.post('member/update-pass',data)
}
export function addNotice(data) {
    return request.post('animal/save',data)
}
export function updateNotice(data) {
    return request.post('animal/update',data)
}
export function getNotice(data) {
    return request.get('animal/list/'+data)
}
export function delNotice(data) {
    return request.post('animal/adopt',data)
}
export function getApplyList(data) {
    return request.get('member/apply-list/'+data)
}
export function agreeApply(data) {
    return request.post('member/agree-apply',data)
}
export function getWorkList(data) {
    return request.get('work-info/list/'+data)
}
export function toApplyWork(data) {
    return request.post('work-info/apply-vacation',data)
}
export function agreeApplyWork(data) {
    return request.post('work-info/agree-vacation',data)
}

export function addDept(data) {
    return request.post('dept/save',data)
}
export function editDept(data) {
    return request.post('dept/update',data)
}
export function getDept(data) {
    return request.get('dept/list/'+data)
}
export function addwarehouse(data) {
    return request.post('warehouse/save',data)
}
export function editwarehouse(data) {
    return request.post('warehouse/update',data)
}
export function getwarehouse(data) {
    return request.get('warehouse/list/'+data)
}

export function getMoney(data) {
    return request.get('community/list/'+data)
}



export function changeUserinfo(data) {
    return request.post('member/update-info',data)
}
export function getMemberList(data) {
    return request.get('member/find-members/'+data)
}
export function getclerkList(data) {
    return request.get('employee/emp-info/'+data)
}
export function getPreList(data) {
    return request.get('order/find-order/reservation/'+data.page+'?mid='+data.mid)
}
export function preSubmit(data) {
    return request.post('order/submit-order',data)
}
export function setEmp(data) {
    return request.post('order/set-emp',data)
}
export function getServicesTypes(data) {
    return request.get('service-type',data)
}

export function delShoppingCar(data) {
    return request.get('shopping-car/delete?id='+data.id)
}
export function getShoppingCar(data) {
    return request.get('shopping-car/'+data.page+'?mid='+data.mid)
}
export function addShoppingCar(data) {
    return request.post('shopping-car/save',data)
}
